Salesforce UX API icon

Salesforce UX API

(0 reviews)

TMF666- Patch-billingAccount-PR

Dunning process sent to Aria. Changing the Autopay/non-Autopay should result in Dunning Process updated in Aria

URL

https://[localhost]:[port]/sfdc-ux/v1/{businessId}/billingAccount/{id}

URL PARAMS

nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, PR etc.) identifying the business unit.Y
idstringunique identifier, in this case account numberY
namevaluedescriptionrequired
client_idstringThe client_id identifying the channel.Y
client_secretstringPassword associated with the client_id.Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server. Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.Y
targetSystemstringThis describes the end system request is for eg, โ€œAriaโ€Y
channelIdStringThis is the channel to identify the business group eg. โ€œSFDC-B2Cโ€Y
lobStringLine of businessN
==> Set dunning process with Autopay

cURL request

curl --location --request PATCH 'https://nonprod.esb.cloud.lla.com/dev/sfdc-ux/sfdc-ux/v1/PR/billingAccount/12345-BAN' \
--header 'X-Correlation-ID: 644e1dd7-2a7f-18fb-b8ed-ed78c3F92c2b' \
--header 'lob: POSTPAID' \
--header 'targetSystem: Aria' \
--header 'channelId: SFDC-B2C' \
--header 'client_id: 784c9a6dd7ae49768816cab57fcf1fa1' \
--header 'client_secret: 187b259EB77441babbF611d2646C670d' \
--header 'Content-Type: application/json' \
--data-raw '{
    "defaultPaymentMethod": {
        "@referredType": "AutoPay",
        "id": "PAYMENT-635",
        "name": "AutoPay_Due_10_PR",
        "@type":"Credit Card"
    },
    "relatedParty": [
        {
            "id": "12345-BG",
            "@type": "BillingGroupRef"
        }
    ],
    "financialAccount": {
        "id": "12345-DG",
        "@type": "DunningGroupRef"
    },
    "characteristic": [
        {
            "valueType": "string",
            "value": "Methods",
            "name": "paymentOption"
        },
        {
            "valueType": "any",
            "value": 1,
            "name": "collections_grp_directive"
        },
        {
            "valueType": "string",
            "value": "Medium",
            "name": "riskProfileId"
        }
    ]
}'
Definitions

Each of the request parameters is detailed.

nametypedescriptionrequired
defaultPaymentMethodobjectA payment method referenceY
defaultPaymentMethod.@referredTypestringtype of pay. Eg: AutoPay/NonAutoPayN
defaultPaymentMethod.@typestringPayment method. Eg: ACH/Credit CardY
defaultPaymentMethod.idstringClient-defined unique identifier for the payment method. If paymentOption value is 'methods' then it's mandatoryY*
defaultPaymentMethod.namestringCollection Group ID to which this billing group should be assignedY
relatedPartyarrayA list of related partiesY
relatedParty.idstringClient-defined unique identifier for billing groupY
relatedParty.@typestringType of related partyY
financialAccountobjectA financial account referenceY
financialAccount.idstringThe client-defined identifier of the dunning group.Y
financialAccount.@typestringType of financial accountN
characteristicarrayA Characteristic. Describes the characteristic of risk profile related to account. Refer the below characteristic table for more info.Y
characteristic.namestringName of the characteristicY
characteristic.valueanyThe value of the characteristicY
characteristic.valueTypestringThe value typeN
characteristic Values
nametypedescriptionrequired
paymentOptionstringThis allows you to select either payment methods (such as a credit card or other electronic form of payment) or payment terms (such as a physical check) when creating or modifying a billing group'Y
collections_grp_directivestringWhether to add or remove the collection group to or from the specified billing group. "1 - assign; 2 - remove"N
riskProfileIdstringClient-defined dunning process identifier.Y

Response

{
    "defaultPaymentMethod": {
        "@referredType": "AutoPay",
        "id": "PAYMENT-635",
        "name": "AutoPay_Due_10_PR",
        "@type": "Credit Card"
    },
    "financialAccount": {
        "id": "12345-DG",
        "@type": "DunningGroupRef"
    },
    "characteristic": [
        {
            "valueType": "string",
            "value": "Methods",
            "name": "paymentOption"
        },
        {
            "valueType": "any",
            "value": 1,
            "name": "collections_grp_directive"
        },
        {
            "valueType": "string",
            "value": "Medium",
            "name": "riskProfileId"
        }
    ],
    "accountRelationship": [
        {
            "account": {
                "id": "1469814",
                "@type": "billing_group_no",
                "@referredType": "BillingAriaAccount"
            }
        },
        {
            "account": {
                "id": "40337487",
                "@type": "stmt_contact_no",
                "@referredType": "BillingAriaAccount"
            }
        },
        {
            "account": {
                "id": "40337460",
                "@type": "bill_contact_no",
                "@referredType": "BillingAriaAccount"
            }
        }
    ],
    "relatedParty": [
        {
            "id": "12345-BG",
            "@type": "BillingGroupRef"
        }
    ]
}
Definitions

Each of the request parameters is detailed.

nametypedescriptionrequired
defaultPaymentMethodobjectA payment method referenceN
defaultPaymentMethod.@referredTypestringtype of pay. Eg: AutoPay/NonAutoPayN
defaultPaymentMethod.@typestringPayment method. Eg: ACH/Credit CardN
defaultPaymentMethod.idstringClient-defined unique identifier for the payment method.N
defaultPaymentMethod.namestringCollection Group ID to which this billing group should be assignedN
relatedPartyarrayA list of related partiesN
relatedParty.idstringClient-defined unique identifier for billing groupN
relatedParty.@typestringType of related partyN
financialAccountobjectA financial account referenceN
financialAccount.idstringThe client-defined identifier of the dunning group.N
financialAccount.@typestringType of financial accountN
characteristicarrayA Characteristic. Describes the characteristic of risk profile related to account. Refer the below characteristic table for more info.Y
characteristic.namestringName of the characteristicN
characteristic.valueanyThe value of the characteristicN
characteristic.valueTypestringThe value typeN
accountRelationshiparraySignificant connection between accounts. For instance an aggregating account for a list of shop branches each having its own billing account.N
accountRelationship.accountobjectAccount reference. A account may be a party account or a financial account.N
accountRelationship.account.idstringUnique identifier of the accountN
accountRelationship.account.@typestringType of accountN
accountRelationship.account.@referredTypestringThe actual type of the target instanceN
characteristic Values
nametypedescriptionrequired
paymentOptionstringThis allows you to select either payment methods (such as a credit card or other electronic form of payment) or payment terms (such as a physical check) when creating or modifying a billing group'Y
collections_grp_directivestringWhether to add or remove the collection group to or from the specified billing group. "1 - assign; 2 - remove"N
riskProfileIdstringClient-defined dunning process identifier.N
accountRelationship values
nametypedescriptionrequired
billing_group_nostringAria internal Billing group numberN
stmt_contact_nostringThe Aria-assigned unique identifier for the statement contact associated with a billing group on the account.N
bill_contact_nostringThe Aria-assigned unique identifier for the contact on this account to be used as the billing contact for the payment method. If bill_contact_no is included in the API request, all other billing contact parameters are ignored.N
==> Set dunning process with non-autopay setup

cURL request

curl --location --request PATCH 'https://nonprod.esb.cloud.lla.com/dev/sfdc-ux/sfdc-ux/v1/PR/billingAccount/12345-BAN' \
--header 'X-Correlation-ID: 644e1dd7-2a7f-18fb-b8ed-ed78c3F92c2b' \
--header 'lob: POSTPAID' \
--header 'targetSystem: Aria' \
--header 'channelId: SFDC-B2C' \
--header 'client_id: 784c9a6dd7ae49768816cab57fcf1fa1' \
--header 'client_secret: 187b259EB77441babbF611d2646C670d' \
--header 'Content-Type: application/json' \
--data-raw '{
    "defaultPaymentMethod": {
        "@referredType": "NonAutoPay",
        "name": "Net_23_Days"
    },
    "relatedParty": [
        {
            "id": "12345-BG",
            "@type": "BillingGroupRef"
        }
    ],
    "financialAccount": {
        "id": "12345-DG",
        "@type": "DunningGroupRef"
    },
    "characteristic": [
        {
            "valueType": "string",
            "value": "Terms",
            "name": "paymentOption"
        },
        {
            "valueType": "string",
            "value": "High",
            "name": "riskProfileId"
        }
    ]
}'
Definitions

Each of the request parameters is detailed.

nametypedescriptionrequired
defaultPaymentMethodobjectA payment method referenceY
defaultPaymentMethod.@referredTypestringtype of pay. Eg: AutoPay/NonAutoPayY*
defaultPaymentMethod.namestringCollection Group ID to which this billing group should be assignedY
relatedPartyarrayA list of related partiesY
relatedParty.idstringClient-defined unique identifier for billing groupY
relatedParty.@typestringType of related partyY
financialAccountobjectA financial account referenceY
financialAccount.idstringThe client-defined identifier of the dunning group.Y
financialAccount.@typestringType of financial accountN
characteristicarrayA Characteristic. Describes the characteristic of risk profile related to account. Refer the below characteristic table for more info.Y
characteristic.namestringName of the characteristicY
characteristic.valuestringThe value of the characteristicY
characteristic Values
nametypedescriptionrequired
paymentOptionstringThis allows you to select either payment methods (such as a credit card or other electronic form of payment) or payment terms (such as a physical check) when creating or modifying a billing group'Y
riskProfileIdstringClient-defined dunning process identifier.Y

Response

{
    "defaultPaymentMethod": {
        "@referredType": "NonAutoPay",
        "name": "Net_23_Days"
    },
    "financialAccount": {
        "id": "12345-DG",
        "@type": "DunningGroupRef"
    },
    "characteristic": [
        {
            "valueType": "string",
            "value": "Terms",
            "name": "paymentOption"
        },
        {
            "valueType": "string",
            "value": "High",
            "name": "riskProfileId"
        }
    ],
    "accountRelationship": [
        {
            "account": {
                "id": "1469814",
                "@type": "billing_group_no",
                "@referredType": "BillingAriaAccount"
            }
        },
        {
            "account": {
                "id": "40337487",
                "@type": "stmt_contact_no",
                "@referredType": "BillingAriaAccount"
            }
        }
    ],
    "relatedParty": [
        {
            "id": "12345-BG",
            "@type": "BillingGroupRef"
        }
    ]
}
Definitions

Each of the request parameters is detailed.

nametypedescriptionrequired
defaultPaymentMethodobjectA payment method referenceN
defaultPaymentMethod.@referredTypestringtype of pay. Eg: AutoPay/NonAutoPayN
defaultPaymentMethod.namestringCollection Group ID to which this billing group should be assignedN
relatedPartyarrayA list of related partiesN
relatedParty.idstringClient-defined unique identifier for billing groupN
relatedParty.@typestringType of related partyN
financialAccountobjectA financial account referenceN
financialAccount.idstringThe client-defined identifier of the dunning group.N
financialAccount.@typestringType of financial accountN
characteristicarrayA Characteristic. Describes the characteristic of risk profile related to account. Refer the below characteristic table for more info.N
characteristic.namestringName of the characteristicN
characteristic.valueanyThe value of the characteristicN
characteristic.valueTypeanyThe value typeN
characteristic Values
nametypedescriptionrequired
paymentOptionstringThis allows you to select either payment methods (such as a credit card or other electronic form of payment) or payment terms (such as a physical check) when creating or modifying a billing group'N
riskProfileIdstringClient-defined dunning process identifier.N
accountRelationship values
nametypedescriptionrequired
billing_group_nostringAria internal Billing group numberN
stmt_contact_nostringThe Aria-assigned unique identifier for the statement contact associated with a billing group on the account.N
bill_contact_nostringThe Aria-assigned unique identifier for the contact on this account to be used as the billing contact for the payment method. If bill_contact_no is included in the API request, all other billing contact parameters are ignored.N

Reviews